<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSettingsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('settings', function (Blueprint $table) {
            $table->increments('id');
            $table->string('home_logo')->comment('前台logo');
            $table->string('admin_logo')->comment('后台logo');
            $table->string('shop_title')->comment('商城标题名称');
            $table->string('pic1')->comment('轮播图一');
            $table->string('pic2')->comment('轮播图二');
            $table->string('pic3')->comment('轮播图三');
            $table->string('pic4')->comment('轮播图四');
            $table->string('pic5')->comment('轮播图五');
            $table->tinyInteger('registerCode')->default(1)->comment('注册验证码');
            $table->string('field1')->nullable();
            $table->string('field2')->nullable();
            $table->string('field3')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('settings');
    }
}
